package com.dissertation.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by jsh3 on 17-11-22.
 * 参与者
 */
@Document(collection = "participant")
public class Participant  {

    @Id
    private String id;

    private String uniqueName; // 名字

    private String schoolName; // 学院 单位

    private String major;// 专业

    private String phone;

    private String email;

    @JsonIgnore
    private boolean deleted;

    private String userId; // 用户账号 可以为null

    public String getMajor() {
        return major;
    }

    public void setMajor( String major ) {
        this.major = major;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone( String phone ) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail( String email ) {
        this.email = email;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName( String schoolName ) {
        this.schoolName = schoolName;
    }

    public String getId() {
        return id;
    }

    public void setId( String id ) {
        this.id = id;
    }

    public String getUniqueName() {
        return uniqueName;
    }

    public void setUniqueName(String uniqueName) {
        this.uniqueName = uniqueName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted( boolean deleted ) {
        this.deleted = deleted;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId( String userId ) {
        this.userId = userId;
    }
}
